<html><head>
<script>console.log("In head");</script>
<title>Test Page</title></head>
  <body>
    <script>
      console.log("In page");
      document.write("document.documentURI result: " + document.documentURI + ".");
    </script>
  </body>
</html>